package org.soft.xinyu.equipmentmanagement.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.soft.xinyu.equipmentmanagement.entity.User;
import org.soft.xinyu.equipmentmanagement.entity.UserInfo;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xinyu
 * @since 2024-7-12
 */
@Mapper

public interface UserMapper extends BaseMapper<User> {

//    @Select("select u.userName, u.password, r.name from user u INNER JOIN roles_user ru on u.id = ru.uid INNER JOIN roles r on r.id = ru.rid where u.userName = #{userName}")
//    UserInfo getUserInfoByUsername(String userName);


}
